<?php

/**
 * facturadetalle form base class.
 *
 * @package    gescell
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BasefacturadetalleForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'facturas_id'         => new sfWidgetFormPropelChoice(array('model' => 'facturas', 'add_empty' => true)),
      'modelosxingresos_id' => new sfWidgetFormPropelChoice(array('model' => 'modelosxingresos', 'add_empty' => true)),
      'articuloservicio'    => new sfWidgetFormInput(),
      'precio'              => new sfWidgetFormInput(),
      'cantidad'            => new sfWidgetFormInput(),
      'exentas'             => new sfWidgetFormInput(),
      'iva'                 => new sfWidgetFormInput(),
      'impuesto'            => new sfWidgetFormInput(),
      'subtotal'            => new sfWidgetFormInput(),
      'created_at'          => new sfWidgetFormDateTime(),
      'updated_at'          => new sfWidgetFormDateTime(),
      'id'                  => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'facturas_id'         => new sfValidatorPropelChoice(array('model' => 'facturas', 'column' => 'id', 'required' => false)),
      'modelosxingresos_id' => new sfValidatorPropelChoice(array('model' => 'modelosxingresos', 'column' => 'id', 'required' => false)),
      'articuloservicio'    => new sfValidatorString(array('max_length' => 50, 'required' => false)),
      'precio'              => new sfValidatorNumber(array('required' => false)),
      'cantidad'            => new sfValidatorNumber(array('required' => false)),
      'exentas'             => new sfValidatorNumber(array('required' => false)),
      'iva'                 => new sfValidatorNumber(array('required' => false)),
      'impuesto'            => new sfValidatorNumber(array('required' => false)),
      'subtotal'            => new sfValidatorNumber(array('required' => false)),
      'created_at'          => new sfValidatorDateTime(array('required' => false)),
      'updated_at'          => new sfValidatorDateTime(array('required' => false)),
      'id'                  => new sfValidatorPropelChoice(array('model' => 'facturadetalle', 'column' => 'id', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('facturadetalle[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'facturadetalle';
  }


}
